return {
	"akinsho/toggleterm.nvim",
	version = "*",
	config = function()
		-- import nvim-autopairs
		local toggleterm = require("toggleterm")

		-- configure autopairs
		toggleterm.setup({})

		local map = vim.keymap.set
		local opt = { noremap = true, silent = true }

		map("n", "tt", "<cmd>ToggleTerm direction=float<CR>", opt)
		map("t", "<Esc><Esc>", "<cmd>ToggleTerm direction=float<CR>", opt)

		-- lazygit
		local Terminal = require("toggleterm.terminal").Terminal
		local lazygit = Terminal:new({ cmd = "lazygit", hidden = true, direction = "float" })

		function _lazygit_toggle()
			lazygit:toggle()
		end

		vim.api.nvim_set_keymap("n", "<leader>git", "<cmd>lua _lazygit_toggle()<CR>", opt)
	end,
}
